home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / System / Chassis 6.0 ƒ / HelpCloseProc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-22  |  816 b   |  29 lines  |  [TEXT/KAHL]

  1. /************************************************************************************/
  2. /*    HelpCloseProc                                                                    */
  3. /************************************************************************************/
  4.  
  5. #include "MyHeaders.h"
  6.  
  7. short HelpCloseProc ()
  8. {
  9.     short        HCRetCode = 0;
  10.     short        item;
  11.  
  12.     if (windTbl[1].windPtr == 0)                        /* if window already closed    */
  13.         goto ENDING;                                    /* skip this whole thing    */
  14.         
  15.  
  16.     LDispose (helpList);                                /* delete the list            */
  17.  
  18.     windTbl[1].windPathRefNum = 0;                        /* indicate file closed        */
  19.     CloseWindow(windTbl[1].windPtr);                    /* close the window            */
  20.     windTbl[1].windPtr = 0;                                /* indicate closed            */
  21.     windTbl[1].windTEChanged = FALSE;                    /* initialize                */
  22.  
  23.     TEDispose (windTbl[1].windTEH[0]);                    /* 5.1.2 dispose TE area    */
  24.  
  25.  
  26. ENDING:
  27.     return    HCRetCode;
  28.  
  29. }